<template>
    <div class="common-component">
        <draw :option="option" :params="params" ref="draw"></draw>
    </div>
</template>

<script>
    import Draw from '../../../commonView/Draw'
    export default {
        name: 'CommonComponent',
        components: {Draw},
        props: {
            option: {
                type: Object
            },
            params: {
                type: Object
            },
        },
        watch:{
            option(v){

            }
        },
        methods:{
            reload(){
                this.$refs.draw.initData()
            }
        }
    }
</script>

<style lang="stylus" rel="stylesheet/stylus">
    .common-component
        /*margin-left 30px*/
</style>
